package STUDENT.TRANNGUYENQUAN.OOPs.OBJECT_AND_CLASSES.Triangle;

public class Models {
	public double Area(Triangle tri) {
		double p = 0;
		p = (tri.getSide1() + tri.getSide2() + tri.getSide3()) / 2;
		return Math.sqrt(p * (p - tri.getSide1()) * (p - tri.getSide2()) * (p - tri.getSide3()));
	}

	public double Perimeter(Triangle tri) {
		return tri.getSide1() + tri.getSide2() + tri.getSide3();
	}
}
